package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.UserOrder;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserOrder record);

    UserOrder selectByPrimaryKey(Long id);

    List<UserOrder> selectAll();

    int updateByPrimaryKey(UserOrder record);

    List<UserOrder> selectForList(QueryObject qo);

    UserOrder selectByProductId(Long id);

    void updateByIndentId(@Param("id") Long id, @Param("state") Integer state);

    UserOrder selectByOrderNumber(String orderNumber);

    UserOrder selectByUUID(String orderNumber);

}